<ui:composition xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	template="template/template.xhtml">
	<ui:define name="title">
		<h:outputText value="#{msgs.selectivePrioritizations}"/>
	</ui:define>
	<ui:define name="bodyInclude">
		<ui:include src="include/menu.xhtml" />
		<p:fieldset legend="#{msgs.selectivePrioritizations}" toggleable="true">
			<h:form id="selectivePrioritizationsForm">
				<p:outputPanel layout="block" styleClass="container">
					<p:dataTable currentPageReportTemplate="{currentPage} #{msgs.of} {totalPages}" emptyMessage="#{msgs.emptyDataTableMessage}" id="selectivePrioritizationToDoTable" paginator="true" paginatorAlwaysVisible="false" paginatorTemplate="{FirstPageLink} {PreviousPageLink} {CurrentPageReport}{PageLinks}{NextPageLink} {LastPageLink}" rows="5" rowsPerPageTemplate="5,10,20,50" value="#{selectivePrioritizationsController.selectivePrioritizations}" var="prioritization">
						<p:column headerText="#{msgs.project}" sortBy="#{prioritization.project.name}" styleClass="center">
							<h:outputText value="#{prioritization.project.name}"/>
						</p:column>
						<p:column headerText="#{msgs.version}" sortBy="#{prioritization.version.name}" styleClass="center">
							<h:outputText value="#{prioritization.version.name}"/>
						</p:column>
						<p:column headerText="#{msgs.selectionType}" sortBy="#{prioritization.selectionType}" styleClass="center">
							<h:outputText value="#{prioritization.selectionTypeTranslation}"/>
						</p:column>
						<p:column headerText="#{msgs.actions}" styleClass="center">
							<p:commandButton action="#{selectivePrioritizationController.onSelectivePrioritization}" alt="#{msgs.visualize}" image="ui-icon-copy" title="#{msgs.visualize}">
								<f:setPropertyActionListener target="#{selectivePrioritizationController.currentIteration}" value="#{prioritization.iterationId}" />
							</p:commandButton>
						</p:column>
					</p:dataTable>
				</p:outputPanel>
			</h:form>
		</p:fieldset>
	</ui:define>
</ui:composition>				